package homework12;

import java.util.Scanner;

public class TestArea {
	public static void main(String[] args) {
		Area area = new Area();
		boolean con=true;
		do {
			Scanner input = new Scanner(System.in);
			area.mainMenu();
			int choose = input.nextInt();
		    switch(choose) {
		    case 1:
		    	area.triangleArea();
		    	break;
		    case 2:
		    	area.roundArea();
		    	break;
		    case 3:
		    	area.squareArea();
		    	break;
		    default:
		    	System.out.println("Error.");
		    }
		}while(con);
	}

}
